home *** CD-ROM | disk | FTP | other *** search
-
- + ANSWER v2.02 +
- | |
- | By: FRANK SCHWEIGER |
- | |
- + 12/14/86 +
-
- Note: This version slightly modifies the original version 1.00 with a few
- minor additions. The first was the addition of a proper carriage return &
- line feed after input. This makes batch file execution visually cleaner.
- The second is the conversion of all input to uppercase. This makes
- branching on input comparison faster, eliminating the need to compare input
- against both upper- and lower-case string constants. This documentation is
- a slight bastardization of the original (sorry, Frank). Brad Berson
-
- The syntax for using ANSWER is as follows:
- ANSWER [optional prompt]
-
- ANSWER will display the optional prompt, and then accept input from the
- keyboard. It will place the input in your CURRENT ENVIRONMENT AREA in a
- field named ANSWER. If "ANSI.SYS" (or other ANSI driver) has been loaded,
- the optional prompt may contain any valid ANSI sequences to position the
- cursor, change color, etc. The user must have previously displayed some
- indication that keyboard input is expected or include the optional prompt
- to do so. If the optional prompt is not present ANSWER will NOT DISPLAY
- ANYTHING that would inform the opertaor that input is expected.
-
- Parameters in the ENVIRONMENT AREA may be accessed similarly to command
- line parameters. See the following examples for clarification.
-
- ANSWER Enter the full filespec for the source file:-
- COPY %ANSWER% junk.dst
-
- ANSWER Enter the drive the source file is on (including :)-
- SET DRIVE=%ANSWER%
- ANSWER Enter the path the source file is on (including following \)-
- SET COPYPATH=%ANSWER%
- ANSWER Enter the source filename-
- COPY %DRIVE%%COPYPATH%%ANSWER% junk.dst
-
- Note: The second example uses 3 parameters in the ENVIRONMENT AREA. If you
- have not expanded your environment area, you may run out of spcae. ANSWER
- sets a return code which can be examined by the ERRORLEVEL option of the
- IF statement. ERRORLEVEL will be 0 if ANSWER was successful, or 1 if there
- was insufficient room or the ENVIRONMENT AREA was corrupted.
-
- This program is provided "as is" without warranty of any
- kind, either expressed or implied, including, but not
- limited to the implied warranties of merchantability or
- fitness for a particular purpose. The entire risk as to the
- results and performance of the program is assumed by the
- user. Should the program prove defective, the users assumes
- the entire cost of all necessary servicing, repair or
- correction.
-
- This program is donated to the PUBLIC DOMAIN, and may be freely
- copied without any restrictions.
-
- Comments or suggestions may be forwarded to:
-
- Frank Schweiger Brad Berson
- 10083 Heytesbury Ln. 9820 62 Dr. 12-E
- Sandy, Ut. 84092 Rego Pk. NY 11374
-